﻿@using   Umbraco.Core;
@using   Umbraco.Core.Models;
@using   Umbraco.Core.Services
@using KSSOnline.Controller;

@inherits umbraco.MacroEngines.DynamicNodeContext


@* Ensure that the Current Page has children, where the property umbracoNaviHide is not True *@
@if (Model.Children.Where("Visible").Any())
{
    <div>
        testing
    </div>
    <ul>            
        @* For each child page under the root node, where the property umbracoNaviHide is not True *@
        @foreach (var childPage in Model.Children.Where("Visible"))
        {
            <li>
                <a href="@childPage.Url">@childPage.Name</a>
            </li>
        }
    </ul>
}

@{foreach (var tab in kssForm.GetKssFormItem())
  {
     // Umbraco.Core.Dynamics.DynamicClass.
      <div>
          @tab.Url
      </div>
  }
    
        
}
